﻿using LimaLims.Application.Service.File.Dto;
using LimaLims.Core;
using LimaLims.Core.Entity.System;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace LimaLims.Application.Service.File
{
    public interface ISysFileService
    {
        Task<SysFile> GetFileInfo([FromQuery] FileInput input);
        Task<IActionResult> PreviewFileInfo([FromQuery] FileInput input);
        Task<FileOutput> UploadFileDefault(IFormFile file,long groupId);
        Task<IActionResult> DownloadFileInfo([FromQuery] FileInput input);
        Task<FileOutput> UploadFileAvatar(IFormFile file, long groupId);
        Task<FileOutput> UploadFile(IFormFile file,long groupId, string key);
        Task DeleteFileInfo(FileInput input);
        Task<PageResult<FileOutput>> QueryPageList([FromQuery] FilePageInput input);
    }
}
